package com.rc.web.controller;

import com.mybatisflex.core.paginate.Page;
import com.rc.common.annotate.WithoutTenant;
import com.rc.pojo.dto.activity.ActivityAddDTO;
import com.rc.pojo.dto.activity.ActivityPageQuery;
import com.rc.pojo.dto.activity.UpdateActivityDTO;
import com.rc.pojo.po.Game;
import com.rc.pojo.vo.activity.ActivityDetailVO;
import com.rc.pojo.vo.activity.ActivityListVO;
import com.rc.pojo.vo.activity.ActivityVO;
import com.rc.pojo.vo.activity.PageActivityVO;
import com.rc.pojo.vo.consumer.ConsumerVO;
import com.rc.web.service.ActivityService;
import com.rc.web.service.GameService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 活动表 控制层。
 *
 * @author sym
 * @since 2024-05-26
 */
@RestController
@RequestMapping("/game")
@Api(tags = "游戏")
@RequiredArgsConstructor
@Validated
public class GameController {
    private final GameService gameService;

    @ApiOperation("顾客获取自己信息")
    @GetMapping("/list")
    public List<Game> getList(@RequestParam @ApiParam("植物id") Long plantId){
        return gameService.listByPlantId(plantId);
    }

}
